module.exports = {
  apps: [{
    name: "h5active",
    script: "./index.js",
    instances: 4,
    watch: true,
    ignore_watch: ["./logs", './test', './README.md'],
    log_date_format: "YYYY/MM/DD HH:mm:ss",
    max_memory_restart: "1G",
    error_file: `./logs/h5active-err.log`,
    out_file: `./logs/h5active-out.log`,
    log_file: `./logs/h5active-combined.log`,
    env_dev: {
      PORT: 5011,
      NODE_ENV: "dev"
    },
    env_prod: {
      PORT: 4080,
      NODE_ENV: "prod"
    }
  }]
};